package com.hlkj.pay.vo.common.req;

import com.hlkj.framework.common.valid.EnumValid;
import com.hlkj.pay.enums.CommonEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author monk@techsun.com
 * @date 2023/04/21 14:10
 */
@Data
public class TemplateStatusReq implements Serializable {

    private static final long serialVersionUID = -7310234882220596200L;
    @Schema(description = "消息模板CODE")
    @NotNull(message = "消息模板CODE不能为空")
    private String            templateCode;

    @Schema(description = "状态：0-草稿；1-上架；2 下架")
    @EnumValid(value = CommonEnum.TEMPLATE_STATUS.class, message = "状态无效")
    @NotNull(message = "上下架状态不能为空")
    private Integer           status;

}
